package com.atguigu.springanalysis.listener;

import com.atguigu.springanalysis.event.BlackListEvent;
import org.springframework.context.ApplicationListener;

public class BlackListNotifier implements ApplicationListener<BlackListEvent> {
    private String notificationAddress;

    public void setNotificationAddress(String notificationAddres) {
        this.notificationAddress = notificationAddress;
    }

    public void onApplicationEvent(BlackListEvent event) {
        System.out.println(event.getTimestamp());
    }
}
